<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: CHJYPC
  Date: 2021/6/8
  Time: 22:40
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>首页</title>
    <link rel="stylesheet" type="text/css" href="${rootPath}resources/css/mainPageContent.css"/>
</head>
<body >
<div class="wrapper">
    <div class="header"><h2 class="headerH" >系统公告</h2> <h3 class="headerHclock" id="headClock"></h3></div>
    <div class="main">
        <ul class="mainUL">
            <c:set var="sum" value="1" />
            <c:forEach var="list"  items="${announcement}">
                <li  style="animation:mymove  ${sum*1.2}s  1;" onclick="seeAnnounce('${list.publisher}','${list.titile}','${list.notice_content}','${list.notice_date}')">

                    <div class="noticeTitle"> ${list.titile} </div>
                    <div class="noticeDate">发布日期：${list.notice_date} </div>
                </li>
                <c:set var="sum" value="${sum+1}" />
            </c:forEach>
        </ul>
    </div>
</div>

<div class="seeAnnouncement" id="divSeeAnnouncement" style="display: none">
    <div class="seeAnnouncementTitle">
        <h2 id="divSeeAnnouncementTitle">??????</h2>
        <input type="button" value="关闭" onclick="closeAnnouncement()">
    </div>
    <div class="seeAnnouncementContent">
        <p id="divSeeAnnouncementContent">??????</p>
    </div>
    <div class="seeAnnouncementFooter">
        <p id="divSeeAnnouncementFooterPublisher"> 发布者 </p>
        <p id="divSeeAnnouncementFooterNoticeDate"> 发布日期</p>
    </div>
</div>
<script type="text/javascript" src="${rootPath}resources/js/mainPageContent/mainPageContent.js"></script>
</body>
</html>
